package CSISL4pk;

public class Person {

    private String last, first, middle, dob, phone;
    private String ssn;
    private char gender;
    public Address address;

    //no-argument constructor
    public Person() {
    }

    // name methods
    public String getLast() {
        return last;
    }

    public void setLast(String last) {
        this.last = last;
    }

    public String getFirst() {
        return first;
    }

    public void setFirst(String first) {
        this.first = first;
    }

    public String getMiddle() {
        return middle;
    }

    public void setMiddle(String middle) {
        this.middle = middle;
    }

    // date of bith methods
    public String getDob() {
        return dob;
    }

    public void setDob(String dob) {
        this.dob = dob;
    }

    // SSN methods
    public String getSSN() {
        return ssn;
    }

    public void setSSN(String ssn) {
        this.ssn = ssn;
    }

    // gender methods
    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    // address methods
    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    // phone number methods
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Name:\t" + last + ", " + first + " " + middle + "\n"
                + "DOB:\t" + dob + "\n"
                + "SSN:\t" + ssn
                + "Phone:\t" + phone;
    }
}